package cn.servlet;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.dao.MessageDAO;

public class PageServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
  
	public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
		String pagenum=request.getParameter("pageNum");
		
		Integer page=null;
		if(pagenum != null){
			page=Integer.parseInt(pagenum);
		}else{
			//若没有指定显示那页，默认第一页
			page=1;
		}
		
		//List list=new MessageDAO().find(page);
		//request.setAttribute("list", list);
	}

}
